package com.lankystar.sos.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lankystar.sos.dao.ILifeCountDao;
import com.lankystar.sos.service.ILifeInterface;

@Service
@Transactional
public class LifeInterface implements ILifeInterface{

	@Autowired
	private ILifeCountDao countDao;
	/**
	 * 根据经纬度查询周边所有类型的统计数量
	 */
	@Override
	public Map<String, Object> queryTypeCountMethod(Double longitude, Double latitude) {
		Map<String, Object> map = countDao.selectTypeCount(longitude,latitude);
		return map;
	}

}
